package com.syt.hospital.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.syt.model.hospital.Hospital;
import com.syt.model.hospital.HospitalSet;
import com.syt.vo.order.SignInfoVo;

import java.util.List;

/**
 * <p>
 * 医院设置表 服务类
 * </p>
 *
 * @author xxx
 * @since 2023-02-01
 */
public interface HospitalSetService extends IService<HospitalSet> {

    /**
     * 获取医院签名信息
     * @param hoscode
     * @return
     */
    SignInfoVo getSignInfoVo(String hoscode);

    /**
     * 根据医院编号获取预约规则
     * @param hoscode
     * @return
     */
    Hospital getByHoscode(String hoscode);

    /**
     * 获取医院名称
     * @param hoscode
     * @return
     */
    String getHospName(String hoscode);

    /**
     * 根据传递过来医院编码，查询数据库，查询签名
     * @param hoscode
     * @return
     */
    String getSinKey(String hoscode);

    /**
     * 修改医院设置锁定或解锁
     * @param id
     * @param status
     * @return
     */
    boolean lockHospitalSet(long id, int status);

    /**
     * 批量删除医院设置
     * @param idList
     * @return
     */
    boolean batchRemoveHospitalSet(List<Long> idList);

    /**
     * 根据id修改医院设置
     * @param hospitalSet
     * @return
     */
    boolean updateHospitalSetById(HospitalSet hospitalSet);


    /**
     * 根据医院Id进行逻辑删除
     * @param id
     * @return
     */
    boolean removeHospitalById(Long id);

    /**
     * 添加医院设置
     * @param hospitalSet
     * @return
     */
    boolean saveHospitalSet(HospitalSet hospitalSet);


}
